package string;

import java.util.Locale;

/**
 * String toUpperCase():
 * 将当前字符串的所有英文部分转换为全大写
 * String toLowerCase():
 * 将当前字符串的所有英文部分转换为全小写
 */
public class ToUpperCaseDemo {
    public static void main(String[] args) {
        String str = "我爱jaVa";
        String upper = str.toUpperCase();
        System.out.println(upper);
        String lower = str.toLowerCase();
        System.out.println(lower);

        String str1 = "aBcDeFg";
        String upper1 = str1.toUpperCase();
        String lower1 = str1.toLowerCase();
        System.out.println(upper1);
        System.out.println(lower1);
    }
}
